<template>
  <div class="footer">
    <p>我是footer</p>
    <p>count的值为{{ count }}</p>
  </div>
</template>

<script>
import { mapState } from 'vuex';
export default {
  name: "Footer",
  computed : {
    // mapState的数组写法
    ...mapState(["count"])
  }
};
</script>

<style scoped>
.footer {
  margin: 30px;
  background: yellowgreen;
}
</style>